#include <iostream>
using namespace std;
int main()
{
bool door1,door2,door3,door4,door5,door6,door7;
int s=0;
door1=door2=door3=door4=door5=door6=door7=true;
door2=!door2;
door4=!door4;
door6=!door6;
door3=!door3;
door6=!door6;
if(door1)s++;
if(door2)s++;
if(door3)s++;
if(door4)s++;
if(door6)s++;
if(door7)s++;
cout <<s<<endl;
return 0;	
}
